<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Converts ISO-8859-1 string to modified UTF-7 text</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.imap-utf7-encode" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_utf7_encode</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">imap_utf7_encode</span> &mdash; <span class="dc-title">Converts ISO-8859-1 string to modified UTF-7 text</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-utf7-encode-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_utf7_encode</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   Converts <code class="parameter">data</code> to modified UTF-7 text.
  </p>
  <p class="para">
   This is needed to encode mailbox names that contain certain characters
   which are not in range of printable ASCII characters.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-utf7-encode-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">data</code></dt>

     <dd>

      <p class="para">
       An ISO-8859-1 string.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-utf7-encode-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <code class="parameter">data</code> encoded with the modified UTF-7
   encoding as defined in <a href="http://www.faqs.org/rfcs/rfc2060" class="link external">&raquo;&nbsp;RFC 2060</a>, 
   section 5.1.3 (original UTF-7 was defined in <a href="http://www.faqs.org/rfcs/rfc1642" class="link external">&raquo;&nbsp;RFC1642</a>).
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.imap-utf7-encode-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="imap_utf7_decode.html" class="function" rel="rdfs-seeAlso">imap_utf7_decode()</a> - Decodes a modified UTF-7 encoded string</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>